package com.bsj.power.common.def.entity.exp;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author yinhao
 * @version 1.0
 * @description 经验反馈
 * @date 2024/5/28
 */
@Data
@NoArgsConstructor
@TableName(value = "tab_experience")
public class Experience extends Model<Experience> {

    /**
     * 主键ID
     */
    @TableId(value = "experience_id" ,type = IdType.AUTO)
    private Long experienceId;
    /**
     * 类型
     */
    @TableField(value = "types")
    private Integer types;
    /**
     * 标题
     */
    @TableField(value = "title")
    private String title;
    /**
     * 具体内容描述
     */
    @TableField(value = "`describe`")
    private String describe;
    /**
     * 附件信息 (图片 文档 视频等)
     */
    @TableField(value = "annex_url")
    private String annexUrl;
    /**
     * 状态 0审核中 1通过 2未通过
     */
    @TableField(value = "state")
    private Integer state;
    /**
     * 添加时间
     */
    @TableField(value = "create_time")
    @JSONField(format ="yyyy-MM-dd HH:mm:ss")
    private Date createTime;
}
